package com.example.onlinemusic.tools;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: H_tao_X
 * Date: 2022-08-06
 * Time: 15:45
 */

import lombok.Data;

/**
 * 设计统一的响应体类工具类
 * @param <T>
 */
// 响应封装的工具类
@Data
public class ResponseBodyMessage  <T>{
    private int status;// 状态码

    private String message;// 返回的信息[出错的原因？ 没错的原因]

    private T data;// 返回给前端的数据

    public ResponseBodyMessage(int status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
